﻿using S7.Net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TianYi
{

    public class PlcItemAddress
    {
        public Op10ConnectionModel Op10Connection { get; set; }
       
      
    }

    ///// <summary>
    ///// 实例化西门子OPC
    ///// </summary>
    ///// <param name="Ip">ip地址</param>
    ///// <param name="cpuType">cpu类型</param>
    ///// <param name="Rack">机架号</param>
    ///// <param name="Slot">槽位</param>
    ///// <param name="ReadDB">读DB</param>
    ///// <param name="ReadByteLength">读长度</param>
    ///// <param name="WriteDB">写DB</param>
    ///// <param name="WriteByteLength">写长度</param>

    public class Op10ConnectionModel
    {
        public string IP { get; set; }
        public string PlcType { get; set; }
        public int Rack { get; set; }
        public int Slot { get; set; }
        public int ReadDB { get; set; }
        public int ReadByteLength { get; set; }
        public int WriteDB { get; set; }
        public int WriteByteLength { get; set; }
    }
   
}
